package com.wyg.epdata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyg.epdata.entity.CompanyIntro;
import com.wyg.epdata.entity.vo.CountByDate;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author WangYongGan
 * @since 2021-11-08
 */
@Mapper
public interface CompanyDataMapper extends BaseMapper<CompanyIntro> {
    List<String> like(String name);//模糊查询

    //根据时间获取负面信息量
    List<CountByDate> getCountRegByDate(String begin, String end, String entity);

    //根据时间获取正面信息量
    List<CountByDate> getCountPoiByDate(String begin, String end, String entity);

    //获取begin-end的entity的总数量趋势(包括poi)
    List<CountByDate> getMonthCountByDate(String begin, String end, String entity);

}
